package com.lixiangfeiyang.recycleritemhelperdemo

import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Canvas
import android.os.Bundle
import android.view.View
import android.view.animation.TranslateAnimation
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.ItemTouchHelper.ACTION_STATE_DRAG
import androidx.recyclerview.widget.ItemTouchHelper.ACTION_STATE_IDLE
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ViewHolder
import com.lixiangfeiyang.recycleritemhelperdemo.databinding.ActivityHomeBinding
import com.lixiangfeiyang.recycleritemhelperdemo.databinding.ActivityMainBinding
import java.util.*

class MainActivity : AppCompatActivity() {



    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val viewBinding = ActivityHomeBinding.inflate(layoutInflater)
        setContentView(viewBinding.root)

       viewBinding.btnGrid.setOnClickListener {
           var intent = Intent(this,ImageActivity::class.java)
           startActivity(intent)
       }

        viewBinding.btnLinear.setOnClickListener {
            var intent = Intent(this,TextActivity::class.java)
            startActivity(intent)
        }
    }


}